from turbogears import validators, widgets
from mnemoply import reports
from mnemoply.utils import IdsValidator

class OpenGroupReport(reports.RDSReport):
    name = _("OpenGroupDocument")
    tag = "OpenGroupDocument"
    report_type = reports.RDSReportType.WORD
    template_module = "mnemoply.templates.reports.open_document"

    fields = [
        widgets.HiddenField(name="ids", label=_("IDs"),
            validator=IdsValidator),
    ]

exposed = OpenGroupReport()
